package com.zking.ssm.model;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.awt.*;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysMenu {

    private Long menuId;//菜单id

    private Long parentId;//父菜单ID，一级菜单为0

        private String name;//菜单名称

    private String url;//菜单URL

    private String perms;//授权(多个用逗号分隔，如：user:list,user:create)

    private Integer type;//类型   0：目录   1：菜单   2：按钮

    private String icon;// 菜单图标

    private Integer orderNum;//排序

    private List<SysMenu> sysMenuList = new  ArrayList<SysMenu>(); //定义一个集合用来保存一级菜单的子子孙孙菜单

    private Long userId;//用户id

    private Long roleId;//角色id

}